#include "Col.ph"
#ifdef __GNUG__
#pragma implementation
#endif

#include "IdDictionary.h"
#include "Class.h"
#include "ContainerTypes.h"
#include "DictHashTab.h"

//---- IdDictionary ------------------------------------------------------------

NewMetaImpl0(IdDictionary,Dictionary);

IdDictionary::IdDictionary(int initCapacity) : Dictionary(this)
{
	Init(initCapacity);
}

void IdDictionary::InitNew()
{
	Container::InitNew();
	Init(cContainerInitCap);
}

void IdDictionary::Init(int initCapacity)
{
	ht= new DictHashTab(
			initCapacity,
			&ContainerTypes::pIdentical, &ContainerTypes::pHashPtr,
			&size);
}


